import { ref } from 'vue';
import { isRecording } from '@/utils/globalRecorder';

export default {
  setup() {
    const recordingVisible = ref(false);

    // 监听录音状态
    setInterval(() => {
      recordingVisible.value = isRecording();
    }, 500);

    return { recordingVisible };
  }
};
